package com.guo.pet_store.admin.pojo;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class PetQuery{
    private Long userId;
    private Long typeId;
    private Long id;
    private String imagePath;
    private String description;
    private Double price;
    private Integer age;
    private Character male;
    private Date saleDate;
    private Boolean onSale;
    private Integer number;
    private String name;

    public PetQuery() {
    }

    public PetQuery(Long userId, Long typeId, Long id, String imagePath,
                    String description, Double price, Integer age, Character male,
                    Date saleDate, Boolean onSale, Integer number, String name) {
        this.userId = userId;
        this.typeId = typeId;
        this.id = id;
        this.imagePath = imagePath;
        this.description = description;
        this.price = price;
        this.age = age;
        this.male = male;
        this.saleDate = saleDate;
        this.onSale = onSale;
        this.number = number;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Character getMale() {
        return male;
    }

    public void setMale(Character male) {
        this.male = male;
    }

    public Date getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(Date saleDate) {
        this.saleDate = saleDate;
    }

    public Boolean getOnSale() {
        return onSale;
    }

    public void setOnSale(Boolean onSale) {
        this.onSale = onSale;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    @Override
    public String toString() {
        return "PetQuery{" +
                "userId=" + userId +
                ", typeId=" + typeId +
                ", id=" + id +
                ", imagePath='" + imagePath + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", age=" + age +
                ", male=" + male +
                ", saleDate=" + saleDate +
                ", onSale=" + onSale +
                ", number=" + number +
                ", name='" + name + '\'' +
                '}';
    }
}
